package com.onlyphoto.onlymall.mvp.contract

import com.onlyphoto.onlymall.base.IBasePresenter
import com.onlyphoto.onlymall.base.IBaseView
import com.onlyphoto.onlymall.bean.request.AddressAddBean
import com.onlyphoto.onlymall.bean.request.DeleteAddressBean
import com.onlyphoto.onlymall.bean.response.RegionBean2


interface CEditAddress {

    interface IPEditAddress : IBasePresenter {
        fun getRegion(layout: Int = 1)
        fun addRegion()
        fun updateAddress()
        fun deleteAddress()
    }

    interface IVEditAddress : IBaseView {
        fun getRegionSuccess(bean: RegionBean2)
        fun setAddressBean(): AddressAddBean
        fun setDeleteAddressBean(): DeleteAddressBean
        fun addRegionSuccess()
        fun showToast(msg: String)
        fun updateAddressSuccess()
        fun deleteAddressSuccess()
    }
}